Welcome![Sign In][Sign Up]
Location:
Search - MFC t

Search list

[Othertreestore

Description: Tree views are capable of storing hierarchical data, which isn t intuitively serialized. The TreeStore sample is an MDI application which shows a view based on CTreeView and demonstrates loading and saving the content of the control with MFC s CArchive-based serialization. The code is also rife with calls to the item navagation routines of CTreeCtrl, including GetNextSiblingItem(), GetPrevSiblingItem(), and GetParentItem().
Platform: | Size: 42049 | Author: 陈伟 | Hits:

[ListView/ListBoxCheckListBoxCBN

Description: like the CCheckListBox class provided with MFC, however, it’s use isn’t obvious and the wizard assistance stops at the CListBox class. I’ll describe how to insert it easily in your project. (There may be easier ways to do it, but this is how I do it and it works). -like the CCheckListBox class provided with MFC, however, it's use is not obvious and the wizard assistance stops at the CListBox class. I'll describe how to insert it easily in your project. (There may be easier ways to do it, but this is how I do it and it works).
Platform: | Size: 13028 | Author: 理理 | Hits:

[Hook apiHookImport_src

Description: Enclosed is MFC source code for a function which can be used to hook any imported function call which your application makes. Since most of the Win32 API is implemented using import functions in dlls, this means that you hook Win32 API calls. This is useful when for example you want to be called for every call to the file system (::CreateFile() & CloseHandle()) which your app makes. This example of hooking the file system calls your app makes could form the basis of code to ensure you do not have any handle leaks in your application. You could also use this code to spy on COM port activity in remote processes by injecting the DLL into the remote process. -MFC source code for a function w hich can be used to hook any imported function ca ll which makes your application. Since most of t he Win32 API is implemented using import functi ons in dlls. this means that you hook Win32 API calls. This is for example useful when you want to be called for every call to the file system (: : CreateFile ()
Platform: | Size: 6252 | Author: l | Hits:

[Button controlActiveXShadeButton

Description: There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written. Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl. -There are many owner-draw button written using C++ and the MFC classes. There a lso many ActiveX controls, mostly written in Visual Basic. While with C++ you can easily use both the MFC and the OCX controls, with Visual Basic you need to convert the MFC objects to an activex control. Unluckily, the class wizard doesn t cover all the messages and the events sent to an ActiveX control, and some messages are different, so most of the magic must be hand written. Because sometimes a piece of code is more clear than the article itself, I included the porting of CxShadeButton to an ActiveX control, but it s just an example, in the article I will speak about a generic AxButtonCtrl.
Platform: | Size: 72314 | Author: 刘亦菲 | Hits:

[Other resourceMFC_Black_Book

Description: MFC Black Book Introduction: Are you an MFC programmer? Good. There are two types of MFC programmers. What kind are you? The first kind are the good programmers who write programs that conform to the way MFC wants you to do things. The second bunch are wild-eyed anarchists who insist on getting things done their way. Me, I’m in the second group. If you are in the same boat (or would like to be) this book is for you. This book won’t teach you MFC—not in the traditional sense. You should pick it up with a good understanding of basic MFC programming and a desire to do things differently. This isn’t a Scribble tutorial (although I will review some fundamentals in the first chapter). You will learn how to wring every drop from your MFC programs. You’ll discover how to use, abuse, and abandon the document/view architecture. If you’ve ever wanted custom archives, you’ll find that, too.-MFC Black Book Introduction : Are you an MFC programmer Good. There are two typ es of MFC programmers. What kind are you The firs t kind are the good programmers who write progra ms that conform to the way MFC wants you to do thin gs. The second bunch are wild-eyed anarchists w ho insist on getting things done their way. Me, I'm in the second group. If you are in the same boa t (or would like to be), this book is for you. This b ook will not teach you MFC-not in the traditional s 810005. You should pick it up with a good understan ding of basic MFC programming and a desire to do t hings differently. This is not a tutor Scribble ial (although I will review some fundamentals i n the first chapter). You will learn how to wring every drop from your MFC programs. You'll disco ver how to
Platform: | Size: 1706696 | Author: Mr .Wang | Hits:

[Windows Developsourcecode

Description: 代码1:本代码实现了以图形方式显示CPU与内存利用率。 代码2:近来我在用VC开发一套MIS时没有用MFC的文档视图模板,所以在打印这上面就只好自己写了一套,用起来感觉还可以,所以写出来大家一起修正一下吧,也许能给大家起点作用吧! 系统UI是基于对话框的,大家如果感觉不错可以进行自我修正! 代码3:编程时有时需要读取SQL服务器的目录及文件列表,特别作一些数据库备份程序的时候,本程序实现这个功能...... 代码4:TTS-文本语音转换。 代码5:本软件是一个用局网域发送信使服务的程序,用到了NET SEND网络命令和创建了一个进程和一个主线程。本软件一共两个线程,显示网络用户信息也用到了第二个线程主要用到的是NETBIOS会话。本程序是发布的DEBUG版如果有什么DEBUG请指出。本程序参考了VISUAL C++网络通信编程一书。 代码6:数据库连接 AD0。本包为数据连接,在您的程序中整体加入此包能帮您的数据库连接省n多代码 里面注释很规范, 请自己阅读。-a code : the source implementation of a graphic display of CPU and memory utilization. Code 2 : Recently, I developed a VC MIS without using MFC View template files, so that the print on the above but their set was used up feeling also, so we write together that so much today, we can perhaps starting role! UI system is based on then the box, if you can feel good for self-correction! code 3 : Programming sometimes need to read SQL server's directory and list of documents, especially for some database backup procedures, the procedures for this function code ...... 4 : TTS - text-to-speech conversion. Code 5 : The software is a network area used courier services to send the procedures used by NET SEND command networks and the creation of a process and a main thread. The software has two t
Platform: | Size: 3398817 | Author: 黄河 | Hits:

[Other resourceTracter1

Description: MFC中Track类的使用,代替异或笔实现橡皮条图形-MFC Track category of use, or replace the T-rubber realization of graphics
Platform: | Size: 34152 | Author: 郭建伟 | Hits:

[OtherfullScreen_program

Description: 为MFC应用程序添加全屏幕显示功能 部分代码: 成员变量: BOOL m_bFullScreen //全屏幕显示标志 CRect m_FullScreenWindowRect //全屏幕显示窗口Rect WINDOWPLACEMENT m_wpPrev //用于保存正常视图时的窗口位置信息 CToolBar * m_wndFullScreenBar //全屏幕显示时的浮动工具条 成员函数: void OnMenuFullscreen() //全屏幕显示的处理函数 void OnGetMinMaxInfo() //捕获WM_GETMINMAXINFO消息以便允许你增加窗口大小 void OnUpdateViewFullScreen() //更新“全屏幕显示”菜单的状态 省略-MFC applications to add full-screen display of code : member variables : BOOL m_bFullScreen / / Full screen display signs CRect m_FullScr eenWindowRect / / Full screen display window Rect WINDOWPLACEMEN T m_wpPrev / / View for the preservation of the normal window of information CToolBar * m_wn dFullScreenBar / / full-screen display of floating tool for members of the function : OnMenuFullscreen void () / / Full screen showed that the processing function void On GetMinMaxInfo () / / catch information to allow WM_GETMINMAXINFO Xu you increase the window size void OnUpdateViewFullScreen () / / updated "Full screen shows that the" state of the menu omitted.
Platform: | Size: 4499 | Author: a | Hits:

[Other resourcesocket_program_guide

Description: 1.套接字编程原理 1.1 Client/server通信模型 1.2 Windows Sockets规范 1.3 套接字 1.3.1 套接字定义 1.3.2分类 1.3.3 套接字的作用 1.3.4端口与地址 1.3.5 套接口属性 2.基本的Windows Sockets API编程 2.1常用函数 2.2 TCP实例 2.3 UDP实例 2.4 Socket 通信阻塞的解决方法 3.MFC下的Socket编程的类 3.1 CAsyncSocket类 3.2 CSocket类 3.3 Windows Sockets:带存档的套接字的工作方式 3.4 流式套接字通信的操作顺序 3.5 使用 CAsyncSocket 类 3.6 从套接字类派生 3.7 套接字通知 3.8 一个使用CSocket类的网络通信实例 3.8.1 服务器端应用程序设计(ServerDemo) 3.8.2 客户端应用程序设计(项目名称ClientDemo) 4.套接字的托管实现 4.1 System::Net::Sockets 命名空间 4.2 实例:一个新邮件检查器 -1. Socket Programming Principle 1.1 Client / server communications model Soc Windows 1.2 kets norms 1.3 Socket socket definition 1.3.1 1.3.3 1.3.2 classification socket role 1.3.4 1.3.5 addresses and port interface attributes two sets. Basic programming Windows Sockets API function commonly used 2.1 2.2 2.3 TCP example UDP Socket Communications examples 2.4 blocked three solutions. MFC Socket Programming under the category of Class 3.2 3.1 CAsyncSocket CSocke t Windows Sockets 3.3 categories : filing with the way socket 340 socket communication flow sequence of operation to use 3.5 CAsyncSo cket category 3.6 derived from the socket type 3.8 3.7 socket notice the use of a network of CSocket Communication Liaison example 3.8.1 server application design (ServerDemo) 3.8.2 client Application D
Platform: | Size: 172902 | Author: gong | Hits:

[Hook apiWinRARZIP

Description: 实现令人满意的风格统一的软件界面确实很难, 象网友提到的MessageBox、FileDialog、FontDialog、目录选择对话框等MFC内部甚至系统DLL内的对话框,要想让它变脸可不容易。有人说HOOK技术可以,HOOK技术确实可以,HOOK可以说是无孔不入,但HOOK的使用效率却是令人难以满意的,从目前大多数采HOOK技术的换肤软件使用情况来看,完全可以证明这一点。今天我们将讨论另外一技术来实现FileDialog的变脸,这种技术叫替换窗口过程法(注:本人杜撰)。   窗口过程函数是大多窗口都有的,它处理窗口中(包括子窗口)的每一个事件,替换窗口过程法与HOOK技术比起来孰强誰弱是很显然的,因为同一个HOOK只能拦截一个事件,处理起来相当费时,HOOK也有它的优势,但不是本文要讨论的。这里先让大家眼见为实,请看下图:-achieve satisfactory style reunification of the software interface is difficult. As netizen's MessageBox, FileDialog, FontDialog. Contents dialog, and other internal MFC DLL system even within the dialog box, in order to allow it faces no easy thing. Some say HOOK technology, the technology can really HOOK, HOOK can be said to be all-pervasive. However, the efficient use HOOK is unsatisfactory. from the most current mining technology HOOK skinnable software situation, we can prove this point. Today, we will discuss other technologies to achieve a FileDialog of independence, This technique called window replacement process (Note : I invented). Process window function is mostly window is the window handle it (including sub-window) per one incident, window replacement process of law and t
Platform: | Size: 760308 | Author: 孙乾坤 | Hits:

[Software EngineeringSCADA

Description: This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our country electric power charged barbed wire net currently, according to the oneself at the e- lectric power protect the profession after the electricity in seven years of development, design and adjust to try the experience on the scene from following severals carry on the treatise:Is the emergence to the system of SC- ADA and developments to introduce first Carry on the introduction elucidation to applied present condition and the development foregrounds of various terminal equipments communication agreement(rules invite) the next in order Then is the elucidation to the windows the bottom according to the mfc the plait distance environment an- d VC++6.0 plait distance softwares Carry on the more detailed treatise to the realization of the procedure struct- ure frame and the source code again End is the applied case example give examples.-This text surrounds the development of the electric power SCADA system exactly, aiming at the present condition of the our count ry electric power charged barbed wire net curre ntly. according to the oneself at the e-lectric power protect the profession after the electricity i n seven years of development, design and adjust to try the experience on the sc Irene from following severals carry on the treati se : Is the emergence to the system of SC - ADA and deve lopments to introduce first Carry on the introd Elucidation uction applied to present conditi on and the development of various t foregrounds erminal communication equipments agreement ( rules invite) the next in order Then is the eluci dation to the windows the bottom according to th e mfc the chivalrous distance an environment-d VC
Platform: | Size: 434867 | Author: Jawen | Hits:

[OpenGL programholsavers

Description: Holistic Screensavers Beginning to End - The Code Project - C++ - MFC-Holistic Screensavers Beginning to End-T he Code Project-C-MFC
Platform: | Size: 413285 | Author: xuroc | Hits:

[File OperateAutoSaveDoc

Description: The sample demonstrate how to save document automatically . The demo is from <<MFC anwser book>>-The sample demonstrate how to save <http://www.un.org/arabic/documents/SCCom t automatically. The demo is from
Platform: | Size: 23089 | Author: 曾晖 | Hits:

[ComboBoxcmnctrl2

Description: CMNCTRL2 Sample: Demonstrates Common Control MFC Classes, Part 2 The CMNCTRL2 sample illustrates how to use the following common control MFC classes: CProgressCtrl, CSliderCtrl, and CSpinButtonCtrl. It shows how the controls are created and how to change the controls using many of the different available styles. CMNCTRL2 is the result of replacing the original CMNCTRLS sample with two smaller projects: CMNCTRL1 (tree, toolbar, date and time picker, month calendar, and animate controls) and CMNCTRL2 (progress, up/down, and slider controls). This was done to reduce the footprint of the sample code, making it easier to trace specific portions of the application. The list control, originally in the CMNCTRLS sample, can now be found in the LISTHDR sample. Security Note This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. -CMNCTRL2 Sample : Demonstrates Common Control MFC Classes, Part 2 The CMNCTRL2 sample illustrates how to us e the following common control MFC classes : CProgressCtrl, CSliderCtrl. and CSpinButtonCtrl. It shows how the controls are created and how to change the controls using many of the different styles available. CMNCTR L2 is the result of replacing the original CMNCT RLS sample with two smaller projects : CMNCTRL1 (tree, toolbar, date and time picker, month calendar, and animate controls) and CMNCTRL2 (progress. up / down, and slider controls). This was done to reduce th e footprint of the sample code, making it easier to trace specific portions of t he application. The list control, CMNCTRLS originally in the sample. can now be found in the LISTHDR sample. Security Note This sample cod
Platform: | Size: 26858 | Author: lorime | Hits:

[Other resourceB35

Description: E:\\VISUAL C++MFC扩展编程实例 实例35 添加帮助菜单项,在本例中将向应用程序中的H e l p菜单中添加C o n t e n t s和S e a r c h 菜单项。-E : \\ MFC Visual C programming examples examples expansion added 35 to help menu items, in this case will be applied to the procedures H e l p menu add C o n t e n t's and S e r c h a menu item.
Platform: | Size: 19006 | Author: 李成男 | Hits:

[OtherHideWindow123

Description: its a useful code. Use this to hide MFC window. when your window code don t want to show other users. -its a useful code. Use this to hide MFC windo w. when your window code do not want to show other u sers.
Platform: | Size: 35349 | Author: 郭迎祥 | Hits:

[WinSock-NDISaddfun

Description: 聊天工具 If your application uses MFC in a shared DLL, and your application is in a language other than the operating system s current language, you will need to copy the corresponding localized resources MFC42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, and rename it to be MFCLOC.DLL. (\"XXX\" stands for the language abbreviation. For example, MFC42DEU.DLL contains resources translated to German.) If you don t do this, some of the UI elements of your application will remain in the language of the operating system.-chatting tool If your application uses MFC in a share d DLL, and your application is in a language other than the operating system's current language, you will need to copy the corresponding localiz ed resources from the Microsoft MFC42XXX.DLL V isual C CD-ROM onto the system or system32 direc tory. and rename it to be MFCLOC.DLL. ( "XXX" stands az r the language abbreviation. For example, MFC42DEU.DLL contains resources translated t o German.) If you do not do this, some of the UI elements of your application will remain in the language of the operating system.
Platform: | Size: 31605 | Author: 周一 | Hits:

[OtherGandyDraw_MFC

Description: 一个简单的交互式绘图程序(MFC) 可以选择图形的种类(直线、折线、矩形、[椭]圆、多边形及对应的填充图形)、绘图颜色(使用颜色公用对话框)、笔的粗细和风格、填充模式(包括填充颜色[与图案])、背景模式与颜色; 可以动态拖动绘图,并显示鼠标当前位置坐标以及拖动矩形的大小; [可以用选择的字体、大小和颜色(使用字体公用对话框)在指定的位置按指定的对齐方式来输出文字串; 可以清屏(调用CWnd类的函数Invalidate()或用背景色画填充客户区矩形)、可以按Esc键取消正在进行的绘图操作; 各种操作和选择有对应的菜单项,且有对应的工具条按钮和加速键。-a simple interactive mapping procedures (MFC) can choose the type of graphics (line, broken line, rectangle, [elliptical] Yuan, polygons and the corresponding filling graphics), mapping color (color use common dialog), T thicknesses, and style, fill patterns (including color filled [logo]), background patterns and colors; dynamically scrolling graphics, and display the current location coordinates of the mouse and drag the rectangular size; [can choose the font, Size and color (using common font dialog box) in a designated area designated by the alignment output text string; can the screen (called CWnd class function Invalidate () or with the background color paintings filled rectangular area customers ), the Esc key can be canceled by the ongoing mapping operation; various operational and
Platform: | Size: 1120841 | Author: 剣心 | Hits:

[Dialog_WindowXFontDialog_demo

Description: In one project I was involved in, we had to display font selection dialog. My Product Manager had some issues with MFC s CFontDialog. He is very focused on reducing support costs by simplifying user interface, to eliminate anything that might be confusing or misleading. OK, it is hard to argue against this goal. In case of CFontDialog, he didn t like all the controls that were unnecessary for our application. Here is what the standard CFontDialog looks like
Platform: | Size: 32907 | Author: 高修成 | Hits:

[Button controlCWBButtonDemo

Description: CWBButton is a WindowBlinds like resizable image button derived from a CButton. In MFC, You can use the class called CBitmapButton, but that s not enough. The size of button is the size of the bitmap, and you can t put a text by calling the API SetWindowText(). I wanted REAL Bitmap Button like GTK+ or WindowBlinds. So I try to create a REAL Bitmap Button referring WindowBlinds.
Platform: | Size: 37274 | Author: gxc | Hits:
« 1 2 34 5 6 7 8 »

CodeBus www.codebus.net